]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st: Don't shadow existing variables
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 23 Sep 2015 17:59:23 +0000 (19:59 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 23 Sep 2015 19:32:50 +0000 (21:32 +0200)
src/st/st-private.c
src/st/st-theme-node.c

index f27955c8dfb6e40271334dd8370a714b3917b504..c842be0cf2cfb06ce5d3fe817257dd3056cfcf69 100644 (file)
@@ -383,9 +383,6 @@ _st_create_shadow_pipeline (StShadow    *shadow_spec,
 
   if (G_UNLIKELY (shadow_pipeline_template == NULL))
     {
-      CoglContext *ctx =
-        clutter_backend_get_cogl_context (clutter_get_default_backend ());
-
       shadow_pipeline_template = cogl_pipeline_new (ctx);
 
       /* We set up the pipeline to blend the shadow texture with the combine
index 7437fd05cdc4842da4abba85886bd5f1ab7a1c94..d71466c5acbaef1c2ea53dfa62d93e43d212a7bc 100644 (file)
@@ -3016,7 +3016,7 @@ st_theme_node_get_border_image (StThemeNode *node)
           CRStyleSheet *base_stylesheet;
           int borders[4];
           int n_borders = 0;
-          int i;
+          int j;
 
           const char *url;
           int border_top;
@@ -3046,7 +3046,7 @@ st_theme_node_get_border_image (StThemeNode *node)
           /* Followed by 0 to 4 numbers or percentages. *Not lengths*. The interpretation
            * of a number is supposed to be pixels if the image is pixel based, otherwise CSS pixels.
            */
-          for (i = 0; i < 4; i++)
+          for (j = 0; j < 4; j++)
             {
               if (term == NULL)
                 break;